
%{
	play.test.Fixtures.load("users.yml");
	bob = models.User.find("email=?","bob@gmail.com").first();
}%

 
#{selenium}
    //Open the Register User for an BUSINESS_ADMIN
    open('@{Users.userCreatedConfirmation('BUSINESS_ADMIN')}')
    waitForPageToLoad(1000)
    assertNotTitle('Application error')
	assertTitle(${play.i18n.Messages.get('user.activate')})
	type('activationKey', ${bob.activationUUID})
	clickAndWait(//input[@value="${play.i18n.Messages.get('forms.activate.account.button.label')}"])
	assertTitle(${play.i18n.Messages.get('user.afterRegistration.nextSteps')})
#{/selenium}